home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_5 / issue_10 / shared_c / c / CEx2 < prev   
Encoding:
Text File  |  1992-05-13  |  481 b   |  22 lines

  1. /*******************************************************************************
  2.  *
  3.  * CEx2.s
  4.  * © Simon Callan, 1992
  5.  *
  6.  * This program is intended as an example of using the Shared C Library from
  7.  * assembler.
  8.  *
  9.  *
  10.  ******************************************************************************/
  11.  
  12. #include <stdio.h>
  13. #include <stddef.h>
  14.  
  15. int main(int argc,char * argv[])
  16.   {
  17.   int loop;
  18.   for(loop=0;loop<argc;loop++)
  19.     printf("arg %d = %s\n",loop,argv[loop]);
  20.   return 0;
  21.   }
  22.